// get_time.cpp
// reference:https://blog.csdn.net/weixin_41055260/article/details/121026837
// #include <chrono>
// #include <ctime>
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    clock_t time1 = clock();
    double sum = 0;
    for(int i = 0; i < 100000000; i++) {
    sum += sqrt(i);
    }
    clock_t time2 = clock();

    double t = ((double)(time2 - time1)) / CLOCKS_PER_SEC ;
    cout << "CLOCKS_PER_SEC: " << CLOCKS_PER_SEC << endl;
    cout << "Process running time: " << t << "s" << endl;

    return 0;
}
